/*
 * Table
 */
@table-base-color: #374047;
@table-thead-font-color: #FFFFFF;
@table-tbody-bg-color: #FFFFFF;
@table-filter-bg-color: #FFFFFF;
@table-editable-bg-color: #FFFFFF;

.c-table {
    width: 100%;
    border: 1px solid @table-base-color;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
    .row{
        &.editable {
            color: @table-base-color;
            &>td, &>th{
                border: none;
                padding: 0px;
                margin: 0px;
                background-color: #FFF;
                border-bottom: 1px solid #374047;
                border-left: 1px solid #374047 !important;
                &:first-child{
                    border-left: none;
                }
                &>*, input, textarea{
                    display: block !important;
                    width: 100% !important;
                    border: none !important;
                    margin: 0px !important;
                    height: 100% !important;
                }
                input, textarea{
                    padding: 0px 4px;

                }
            }
        }
        &.head{

        }
        &.filter{

        }
        &>th, &>td{
            border: none;
            text-align: left;
            padding: 4px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            vertical-align: middle;
            &.text-align-right{
                text-align: right !important;
            }
            &.text-align-center{
                text-align: center !important;
            }
            &.text-align-left{
                text-align: left !important;
            }
        }
    }
    &>thead{
        display: table-header-group;
        vertical-align: middle;
        border-color: inherit;
        background-color: @table-base-color;
        color: @table-thead-font-color;
        font-size: 1.4rem;
        &>.row{
            &>th{

            }
        }
        &>*{
            font-weight: bolder !important;
        }
    }

    &>tbody{
        background-color: @table-tbody-bg-color;
        &>.row{
            font-size: 1.4rem;
            /*text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5);*/
            &:nth-child(even){
                background-color: #ECE9E9;
            }
            &.selected>*{
                color: #FFF;
                text-decoration: none;
                border-color: #FFF;
                background-color: #3FA9F5;
            }
            &>td{

            }
            &:hover{
                cursor: pointer;
                background: #F0F0F0;
                /*text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);*/
            }
        }
    }
}
